package com.sihai.ehr.model.biz;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.EmployeeinfoTypeEnum;

/**
 * 员工信息变动日志实例类
 * 
 * @author henry
 * 
 */
@Entity
public class EmployeeinfoLog extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "work_id")
	private EmployeeinfoWork employeeinfoWork;// 员工任职
	/** 变动内容 */
	private String content;

	/** */
	@Enumerated(EnumType.STRING)
	private EmployeeinfoTypeEnum employeeinfoTypeEnum;

	/** 产生日期 */
	private Date generateDate;

	private Long authorId;

	private String author;

	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public EmployeeinfoWork getEmployeeinfoWork() {
		return employeeinfoWork;
	}

	public void setEmployeeinfoWork(EmployeeinfoWork employeeinfoWork) {
		this.employeeinfoWork = employeeinfoWork;
	}

	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	public EmployeeinfoTypeEnum getEmployeeinfoTypeEnum() {
		return employeeinfoTypeEnum;
	}

	public void setEmployeeinfoTypeEnum(
			EmployeeinfoTypeEnum employeeinfoTypeEnum) {
		this.employeeinfoTypeEnum = employeeinfoTypeEnum;
	}

	public Date getGenerateDate() {
		return generateDate;
	}

	public void setGenerateDate(Date generateDate) {
		this.generateDate = generateDate;
	}

	public Long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(Long authorId) {
		this.authorId = authorId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
}
